package Reflect;

public class Lover {

  private int age;
  private String name;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getAge() {
    return age;
  }

  public void setAge(int age) {
    this.age = age;
  }

  public Lover(int age, String name) {
    this.age = age;
    this.name = name;
  }

  public Lover(){

  }

  @Override
  public String toString() {
    return "Lover{" +
            "age=" + age +
            ", name='" + name + '\'' +
            '}';
  }

  private void say(String name){
    System.out.println("你好，反射！！！");
  }
}
